<template>
  <div class="header">
    <slot></slot>
    <input type="input" :value="value" @input="changeval" @keydown.13="emitadd" />
  </div>
</template>

<script>
export default {
  props: ["value"],

  methods: {
    changeval(e) {
      this.$emit("input", e.target.value);
    },
    emitadd() {
      this.$emit("enter");
    }
  }
};
</script>

<style lang="scss" scoped>
.header {
  width: 100%;
  height: 100px;
  background-color: black;
  color: white;
  text-align: center;
  line-height: 100px;
}
</style>
